<html>
<head>
<title>{$siteinfo.systeminfo}</title>
<link type="text/css"
	href="{$siteinfo.tempdir}images/css/jquery.ui.all.css" rel="stylesheet" />
<link href="{$siteinfo.tempdir}images/index.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="inc/js/jquery.js"></script>
<script type="text/javascript"
	src="inc/js/external/jquery.bgiframe-2.1.1.js"></script>
<script type="text/javascript" src="inc/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="inc/js/jquery.ui.widget.js"></script>
<script type="text/javascript" src="inc/js/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="inc/js/jquery.ui.button.js"></script>
<script type="text/javascript" src="inc/js/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="inc/js/jquery.ui.position.js"></script>
<script type="text/javascript" src="inc/js/jquery.ui.resizable.js"></script>
<script type="text/javascript" src="inc/js/jquery.ui.dialog.js"></script>
<script type="text/javascript" src="inc/js/jquery.effects.core.js"></script>
<link type="text/css" href="{$siteinfo.tempdir}images/css/demos.css"
	rel="stylesheet" />
<style type="text/css">
body {
	font-size: 62.5%;
}

label,input {
	display: block;
}

input.text {
	margin-bottom: 12px;
	width: 95%;
	padding: .4em;
}

fieldset {
	padding: 0;
	border: 0;
	margin-top: 25px;
}

h1 {
	font-size: 1.2em;
	margin: .6em 0;
}

div#users-contain {
	width: 350px;
	margin: 20px 0;
}

div#users-contain table {
	margin: 1em 0;
	border-collapse: collapse;
	width: 100%;
}

div#users-contain table td,div#users-contain table th {
	border: 1px solid #eee;
	padding: .6em 10px;
	text-align: left;
}

.ui-dialog .ui-state-error {
	padding: .3em;
}

.validateTips {
	border: 1px solid transparent;
	padding: 0.3em;
}
</style>
<script type="text/javascript">
	$(function() {
		$("#dialog").dialog("destroy");
		
		var password = $("#password"),
			allFields = $([]).add(password),
			tips = $(".validateTips");

		function updateTips(t) {
			tips
				.text(t)
				.addClass('ui-state-highlight');
			setTimeout(function() {
				tips.removeClass('ui-state-highlight', 1500);
			}, 500);
		}

		$("#dialog-form").dialog({
			autoOpen: false,
			height: 300,
			width: 350,
			modal: true,
			buttons: {
				'OK': function() {
					var bValid = true;
					allFields.removeClass('ui-state-error');
					if (bValid) {
                    var powerpass=password.val();
					 $.ajax({
	   type:"GET",
	   url:"do/ajax/aj_admin.php",
	   data:"action=chkpower&powerpass="+powerpass,
	   success:	function(date){
       if(date=='false')
       {
           alert("验证失败，请再次尝试！");
 	   }else
 	   {
	      var linkstr='<a href="{$siteinfo.changepass}" target="forum"><img src="{$siteinfo.tempdir}images/top5.gif" width="68" height="23" border="0"></a>'
 	 	  $("#create-user").remove();
		  $("#powerx1").append(linkstr);
		  
 	 	}
	}
  });
						$(this).dialog('close');
					}
				},
				Cancel: function() {
					$(this).dialog('close');
				}
			},
			close: function() {
				allFields.val('').removeClass('ui-state-error');
			}
		});
		
		
		
		$('#create-user')
			.click(function() {
				$('#dialog-form').dialog('open');
			});
	});
	</script>


<SCRIPT>
function switchSysBar(){
	if (switchPoint.innerText==3){
		switchPoint.innerText=4
		document.all("frmTitle").style.display="none"
	}
	else{
		switchPoint.innerText=3
		document.all("frmTitle").style.display=""
	}
}
/**********************************************/
$(
function(){
$(".progressCancel").click(function(){
$(".errbox").addClass("hid");

});
})

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body style="MARGIN: 0px">
<!--{if $error}-->
<div class="errbox"><a href="#" class="progressCancel"></a>下面的错误提示可以暂时关闭，但是在你重新登录后或再次刷新后还会出现，除非你彻底的解决问题。我们的服务邮箱:master@xueniao.org</div>
<!--{foreach item=item from=$error}-->
<div class="errbox"><span class="nwring"></span><span>{$item}</span></div>
<!--{/foreach}-->
<!--{/if}-->


<!-- 弹出窗口 -->
<div id="dialog-form" title="权限验证码">
<fieldset><input type="password" name="password"
	id="password" value="" class="text ui-widget-content ui-corner-all" />
</fieldset>
</div>
<!-- 弹出窗口 -->

<table width="100%" height="100%" border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="38" colspan="3" valign="top">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="26%" height="38"
					background="{$siteinfo.tempdir}images/top1.gif"><img
					src="{$siteinfo.tempdir}images/logo.gif" width="257" height="38"></td>
				<td width="44%" background="{$siteinfo.tempdir}images/top1.gif">
				<table width="98%" border="0" cellpadding="0" cellspacing="0"
					background="{$siteinfo.tempdir}images/top3.gif">
					<tr>
						<td width="3%"><img src="{$siteinfo.tempdir}images/top2.gif"
							width="10" height="23"></td>
						<td width="95%" align="center" class="bs">{$adminlang.hello}{$siteinfo.user}，{$adminlang.stime}：{$adminlang.nowtime}
						,{$adminlang.sversion}：{$siteinfo.version}</td>
						<td width="2%" align="right"><img
							src="{$siteinfo.tempdir}images/top4.gif" width="10" height="23"></td>
					</tr>
				</table>
				</td>
				<td width="30%" background="{$siteinfo.tempdir}images/top1.gif">
				<table width="250" border="0" cellspacing="0" cellpadding="0">
					<tr>

						<td width="81" id="powerx1">
						<!-- {if $siteinfo.adminpower eq $siteinfo.admintype} --> 	
						<a href="{$siteinfo.changepass}" target="forum"><img
							src="{$siteinfo.tempdir}images/top5.gif" width="68" height="23"
							border="0"></a> 
						<!-- {else} -->		
							<img
							src="{$siteinfo.tempdir}images/top_x1.gif" width="68" height="23"
							border="0" id="create-user" style="cursor: pointer"> 
						<!-- {/if} -->	
						</td>
						<td width="81"><a href="{$siteinfo.editselfinfo}"
							target="forum"><img src="{$siteinfo.tempdir}images/top6.gif"
							width="68" height="23" border="0"></a></td>
						<td width="82"><a href="{$siteinfo.logout}" target="_top"><img
							src="{$siteinfo.tempdir}images/top7.gif" width="68" height="23"
							border="0"></a></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td valign="top" id="frmTitle"><IFRAME frameBorder="0"
			id="BoardTitle" name="BoardMenu" scrolling="auto"
			src="{$siteinfo.leftmenu}"
			style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 182px; Z-INDEX: 2"></IFRAME>
		</td>
		<td width="1%" bgcolor="#709FC7" onClick="switchSysBar()">
		<table class="navPoint">
			<tr>
				<td height="120" background="{$siteinfo.tempdir}images/left_m.gif"><span
					class="navPoint" id="switchPoint" title="关闭/打开菜单">3</span></td>
			</tr>
		</table>
		</td>
		<td width="100%" valign="top"><IFRAME frameBorder="0"
			id="frmright" name="forum" src="{$siteinfo.tempdir}ht.htm"
			style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME>
		</td>
	</tr>
</table>
<div id="ToolBar">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="27" align="right"
			background="{$siteinfo.tempdir}images/bot.gif"
			style="padding-right: 20px;" class="bs"></td>
	</tr>
</table>
</div>
</body>
</html>
